UseSocketStateType
import { UseSocketStateType } from "@hyper-fetch/react"
Description
Defined in helpers/use-socket-state/use-socket-state.types.ts:1
Preview
type UseSocketStateType<DataType> = {
connected: boolean;
connecting: boolean;
data: DataType | null;
timestamp: number | null;
}
Structure
{
connected: boolean;
connecting: boolean;
data: DataType | null;
timestamp: number | null;
}